package com.rul.mars.order.service;

import org.springframework.transaction.annotation.Transactional;

/**
 * 库存服务
 * @author RuL
 */
public interface StockService {
    @Transactional
    void lockStock(Long productId, Integer productNum);

    @Transactional
    void unlockStock(Long productId, Integer productNum);
}
